package com.unytech.project.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@MappedSuperclass
//@Inheritance(strategy=InheritanceType.SINGLE_TABLE)  //继承策略
//@DiscriminatorColumn(name="type")  //鉴别器的列
//@DiscriminatorValue("0")  //鉴别器的值
public abstract class BaseEntity implements Serializable{
	protected Integer delor = 0;
	
	@Temporal(TemporalType.TIMESTAMP)
	protected Date createdate = new Date();
	
	
	
	public Integer getDelor() {
		return delor;
	}

	public void setDelor(Integer delor) {
		this.delor = delor;
	}

	public Date getCreatedate() {
		return createdate;
	}
	
	
}
